package com.bestcem.xm.member.grpc.service.param.project;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.bestcem.xm.member.enums.DeliveryTypeEnum;
import com.bestcem.xm.member.enums.MemberTypeEnum;
import com.bestcem.xm.member.grpc.service.param.PageParam;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @description 模糊搜索项目经理参数
 * @date 2021/7/27
 */
@Getter
@Setter
@ToString
public class FuzzySearchProjectParam {
    // 企业标识
    @NotBlank
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "企业标识格式错误")
    private String orgId;

    private MemberTypeEnum memberTypeEnum;

    private String regex;

    private DeliveryTypeEnum deliveryTypeEnum;

    @NotNull
    private PageParam pageParam;

    /**
     * 用户标识
     */
    private String userId;

    /**
     * 是否为超级管理员; 1: 是
     */
    private Integer superRole;

    /**
     * 高级管理员权限
     */
    private Integer isSenior;

    private String appId;
}
